<div class="modal" ui-if="locateModal" ui-state='locateModal' ng-controller="LocateModalController">
  <div class="modal-backdrop in"></div>
  <div class="modal-dialog my-modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">签到</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon">排数</div>
            <input type="number" class="form-control" name="row" required ng-model="locInfo.locRow" placeholder="从前数的排数">
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <div class="input-group-addon">列数</div>
            <input type="number" class="form-control" name="col" required ng-model="locInfo.locCol" placeholder="从左数的列数">
          </div>
        </div>
        <div class="form-group">
          <div class="row">
            <button ui-turn-off="locateModal" class="btn btn-default col-xs-offset-1 col-xs-5">取消</button>
            <button ui-turn-off="locateModal" class="btn btn-primary col-xs-5" ng-disabled="!locInfo.locCol || !locInfo.locRow" ng-click="addLocate()">确定</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>